module.exports = {
  presets: [
    ['@babel/preset-env', { targets: { node: 'current' } }],
    '@babel/preset-react',
    '@babel/preset-typescript',
  ],
  plugins: [
    [
      'babel-plugin-transform-imports',
      {
        'antd': {
          'transform': 'antd/es/${member}',
          'preventFullImport': true
        },
        '@ant-design/icons': {
          'transform': '@ant-design/icons/es/icons/${member}',
          'preventFullImport': true
        },
        'react-icons': {
          'transform': 'react-icons/esm/${member}',
          'preventFullImport': false
        }
      }
    ]
  ],
};